package lock;

import java.util.Date;
import java.util.concurrent.locks.ReentrantLock;

public class ReentrantLockTest {

    public static void main(String[] args) throws InterruptedException {

        System.out.println(System.currentTimeMillis());

        System.out.println(new Date(1585114499244L));
        ReentrantLock lock = new ReentrantLock();

        for (int i = 1; i <= 3; i++) {
            lock.lock();
        }

        for (int i = 1; i <= 3; i++) {
            try {

            } finally {
                lock.unlock();
            }
        }
    }
}
